<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<{:url('userbank/edit')}>">
            <input type="hidden" name="id" value="<{$info['id']}>">
            <input type="hidden" name="user_id" value="<{$info['user_id']}>">

            <div class="layui-form-item">
              <label class="layui-form-label">持卡人姓名</label>
              <div class="layui-input-block">
                <input type="text" name="user_name" value="<{$info['user_name']}>" required lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">开户行</label>
              <div class="layui-input-block">
                <input type="text" name="bank_name" value="<{$info['bank_name']}>" required lay-verify="required" placeholder="请输入开户行" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">开户网点</label>
              <div class="layui-input-block">
                <input type="text" name="bank_wangdian" value="<{$info['bank_wangdian']}>" required lay-verify="required" placeholder="请输入网点" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">银行卡号</label>
              <div class="layui-input-block">
                <input type="text" name="bank_no" value="<{$info['bank_no']}>" required lay-verify="required" placeholder="请输入卡号" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">是否默认</label>
              <div class="layui-input-block">
                    <select name="is_default" required lay-verify="required">
                        <option value="">请选择</option>
                      <{volist name=":c('type.is_default')" id="v"}>
                          <option value="<{$key}>" <{if $info->getData('is_default')==$key}>selected<{/if}>><{$v}></option>
                      <{/volist}>
                    </select>
              </div>
            </div>
            
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();

  var ue = UE.getEditor('container');
});
</script>
